<?php 
	PhanQuyenDiemDanh(); 
	if(!IsGV())
		header('Location: ../index.php');
?>
<div style="width:100%">
	<div class="Title" style="width:100%; color:#333; font-size:16px">Cập nhật thông tin giáo viên</div>
	<div class="Table">
		<form action="index.php?act=giaovien_capnhat_sub" method="POST">
			<table class="CapNhatGV" width="50%" style="border-spacing:0; border:1px solid #DDD">
				<?php
					$MaGiaoVien = $_SESSION['GV']['MaGiaoVien'];
					echo '<input type="text" name="MaGiaoVien" value="' . $MaGiaoVien . '" hidden="true"/>';
				?>
				<tr>
					<td>&nbsp;</td>
				</tr>
				<tr style="height:30px">
					<td width="35%">&nbsp;Họ tên</td>
					<td><input type="text" name="HoTen" style="width:99%" value="<?php echo $_SESSION['GV']['HoTen']; ?>" /></td>
				</tr>
				<tr style="height:30px">
					<td width="35%">&nbsp;Điện thoại</td>
					<td><input type="text" name="DienThoai" style="width:99%" value="<?php echo $_SESSION['GV']['DienThoai']; ?>"/></td>
				</tr>
				<tr style="height:30px">
					<td>&nbsp;Địa chỉ</td>
					<td><input type="text" name="DiaChi"  style="width:99%" value="<?php echo $_SESSION['GV']['DiaChi']; ?>"/></td>
				</tr>
				<tr style="height:30px">
					<td>&nbsp;Ngày sinh</td>
					<td><input type="text" name="NgaySinh" id="datepicker" style="width:99%" value="<?php echo ConvertDate($_SESSION['GV']['NgaySinh']); ?>"/></td>
				</tr>
				
				<tr>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td colspan="2" align="center"><input type="submit" value="Cập nhật"  style="padding: 0 20px 0px 20px; height: 30px; cursor: pointer"/>
					<input type="reset" value="Reset"  style="padding: 0 20px 0px 20px; height: 30px; cursor: pointer"/></td>
				</tr>
				<tr>
					<td>&nbsp;</td>
				</tr>
			</table>
		</form>
	</div>
</div>